package com.api.shopapi.service.impl;

import com.api.shopapi.entity.NursingSchedulingNoonItem;
import com.api.shopapi.mapper.NursingSchedulingNoonItemMapper;
import com.api.shopapi.service.NursingSchedulingNoonItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("NursingSchedulingNoonItemServiceImplOne")
public class NursingSchedulingNoonItemServiceImpl implements NursingSchedulingNoonItemService {

    @Autowired
    private NursingSchedulingNoonItemMapper nursingSchedulingNoonItemMapper;


    @Override
    public int insert(NursingSchedulingNoonItem nurseSchedulingNoonItem) {
        return nursingSchedulingNoonItemMapper.insert(nurseSchedulingNoonItem);
    }

    @Override
    public int updateByNurseSchedulingNoonItemCode(NursingSchedulingNoonItem nurseSchedulingNoonItem) {
        return nursingSchedulingNoonItemMapper.updateByNursingSchedulingNoonItemCode(nurseSchedulingNoonItem);
    }

    @Override
    public int deleteByNurseSchedulingNoonItemCode(String nurseSchedulingNoonItemCode) {
        return nursingSchedulingNoonItemMapper.deleteByNursingSchedulingNoonItemCode(nurseSchedulingNoonItemCode);
    }

    @Override
    public NursingSchedulingNoonItem getByNursingSchedulingNoonItemCode(String nurseSchedulingNoonItemCode) {
        return nursingSchedulingNoonItemMapper.getByNursingSchedulingNoonItemCode(nurseSchedulingNoonItemCode);
    }

    @Override
    public List<NursingSchedulingNoonItem> getListByNursingSchedulingNoonCode(String nursingSchedulingNoonCode) {
        return nursingSchedulingNoonItemMapper.getListByNursingSchedulingNoonCode(nursingSchedulingNoonCode);
    }

    @Override
    public int deleteByNurseSchedulingNoonCode(String nursingSchedulingNoonCode) {
        return nursingSchedulingNoonItemMapper.deleteByNurseSchedulingNoonCode(nursingSchedulingNoonCode);
    }

    @Override
    public NursingSchedulingNoonItem getByNursingSchedulingNoonCodeAndNurseAideCode(String nursingSchedulingNoonCode, String nurseAideCode) {
        return nursingSchedulingNoonItemMapper.getByNursingSchedulingNoonCodeAndNurseAideCode(nursingSchedulingNoonCode,nurseAideCode);
    }

    @Override
    public NursingSchedulingNoonItem getByNursingSchedulingNoonCodeAndNurseCode(String nursingSchedulingNoonCode, String nurseCode) {
        return nursingSchedulingNoonItemMapper.getByNursingSchedulingNoonCodeAndNurseCode(nursingSchedulingNoonCode,nurseCode);
    }
}
